﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CreateMap : MonoSingleton<CreateMap>
{
    public GameObject cg;
    private SerializableSet configSet;
    bool isInit = false;

    private void Awake()
    {
        configSet = Resources.Load<SerializableSet>("Config/SerializableSet");
        Deserializer.Deserialize(configSet);
        Resources.UnloadUnusedAssets();

        HPManager.Instance.Release();
        MapManager.Instance.Release();
        ImgManager.Instance.Release();

        MapManager.Instance.Initialize();
        MapManager.Instance.CreateMap(1);
    }

    private void Start()
    {
        if (ScenesManager.Instance.GetGameStatus() == 1)
        {
            cg.SetActive(true);
        }
    }
}
